<ui:composition template="/WEB-INF/template/padrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="title">Propriedades do Banco de Dados</ui:define>
	<ui:define name="corpo">
		<h:form>
			<h:panelGrid columns="4" id="gridTpItem">
				<p:outputLabel value="Username " for="username" />
				<p:inputText value="#{writeProps.username}" id="username" />
				
				<p:outputLabel value="Password: " for="password" />
				<p:password value="#{writeProps.password}" id="password" />
				
				<p:outputLabel value="URL: " for="url" />
				<p:inputText value="#{writeProps.url}" id="url" />
				
				<p:outputLabel value="Driver_class: " for="driver_class" />
				<p:inputText value="#{writeProps.driver_class}" id="driver_class" />
				
				<p:outputLabel value="Dialect: " for="dialect" />
				<p:inputText value="#{writeProps.dialect}" id="dialect" />
				
				<p:outputLabel value="Format_sql: " for="format_sql" />
				<p:inputText value="#{writeProps.format_sql}" id="format_sql" />
				
				<p:outputLabel value="Show_sql: " for="show_sql" />
				<p:inputText value="#{writeProps.show_sql}" id="show_sql" />
				
				<p:outputLabel value="Hbm2ddl_auto: " for="hbm2ddl_auto" />
				<p:inputText value="#{writeProps.hbm2ddl_auto}" id="hbm2ddl_auto" />
	
				<p:commandButton value="Gravar"
					actionListener="#{writeProps.writeProps}" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>